

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title></title>
    <link href="css/MainStyle.css" rel="stylesheet" type="text/css" />
    <script src="js/cAlert.js" type="text/javascript"></script>
    
    <link href="css/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    
    <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script src="js/autoComplete.js" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="css/MsgBox.css">
    
    <script src="js/jquery.cookies.2.2.0.min.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        var QueryTimeID = "";
        var CountdownTimeID = "";
        var z = 0;

        var hashTable = new Hashtable();
        $(document).ready(function () {
            //加载AutoComplete全部数据
            Loding("DC0000000356957", "光山县同富粮食贸易有限责任公司库点", "YHLX0105", "");

            //功能跳转
            $(".RedirectOtherPage").click(function () {
                var pass = true;
                if ($("#hdCompany").val() == "") {
                    alert("请选择分公司！");
                    $(".Company_AutoComplete").next("input").focus();
                    return false;
                }
                if ($("#hdGranaryDC").val() == "") {
                    alert("请选择粮库！");
                    $(".Granary_AutoComplete_DC").next("input").focus();
                    return false;
                }

                var checkUrl = $(this).attr("lang");   //获取要跳转到的页面
                var checkText = $(this).val();         //获取Select选择的Text 
                var checkValue = $(this).attr("validationgroup"); //获取Select选择的Value 
                openPanelWithMenu(checkValue, checkText, checkUrl + "?gid=" + $("#hdGranary").val() + "&GidDc=" + $("#hdGranaryDC").val() + "&datetime=" + CurentTime());
            });

            /*********************************************************************************************************************************************************************************************/

            //查询功能
            $("#btn_Query").click(function () {

                if (!Check())  //检测是否选择分公司及粮库
                {
                    return false;
                }
                GetCheckDateInfo();

                //设置刷新（循环8次，自动停止）
                SetTime();
            });

            /*********************************************************************************************************************************************************************************************/

            //检测功能
            $("#btn_Check").click(function () {
                //获取选择的仓房ID
                var flag = false;
                var StoreCheckList = "";

                if (!confirm("确定要检测仓房吗?")) {
                    return false;
                }

                StoreCheckList = $(".checkItem").map(function (i, item) {

                    if ($(this).attr("checked")) {

                        var StatusNmStr = $(this).parent("td").siblings().find(".StatusNm").text();

                        if (StatusNmStr.indexOf("等待中") < 0 && StatusNmStr.indexOf("巡检中") < 0 && StatusNmStr.indexOf("检测中") < 0) {
                            return this.id;
                        }
                        else {
                            flag = true;
                        }
                    }
                }).get().join("/");

                if (StoreCheckList == "") {
                    if (flag) {
                        alert("您选择的仓房正在检测中！");
                        return false;
                    }
                    else {
                        alert("请选择仓房！");
                        return false;
                    }
                }
                else {
                    //发送命令
                    var CompanyID = $("#hdCompany").val();
                    var GranaryID = $("#hdGranaryDC").val();
                    var LoginCode = $("#hdLoginCode").val();
                    var SerialNos = "";

                    $.ajax({
                        type: "Get",
                        url: "AutoCheckTempAjax.ashx",
                        cache: false,
                        ifModified: true,
                        data: "Function=SendCheckOrder&CompanyID=" + CompanyID + "&GranaryID=" + GranaryID + "&LoginCode=" + LoginCode + "&SerialNos=" + "&StoreCheckList=" + StoreCheckList + "/",
                        beforeSend: function (XMLHttpRequest) {

                        },
                        success: function (retMsg) {
                            if (retMsg == "0") {
                                GetCheckDateInfo();

                                SetTime();
                                return false;
                            }
                            else {
                                alert("添加错误!");
                                return false;
                            }
                        }
                    })
                }
            });

            /*********************************************************************************************************************************************************************************************/

            //巡检功能
            $("#btn_CheckAuto").click(function () {
                //获取选择的仓房ID
                var flag = false;
                var StoreCheckList = "";

                if (!confirm("确定要巡检仓房吗?")) {
                    return false;
                }

                StoreCheckList = $(".checkItem").map(function (i, item) {

                    if ($(this).attr("checked")) {

                        var StatusNmStr = $(this).parent("td").siblings().find(".StatusNm").text();

                        if (StatusNmStr.indexOf("等待中") < 0 && StatusNmStr.indexOf("巡检中") < 0 && StatusNmStr.indexOf("检测中") < 0) {
                            return this.id;
                        }
                        else {
                            flag = true;
                        }
                    }
                }).get().join("/");

                if (StoreCheckList == "") {
                    if (flag) {
                        alert("您选择的仓房正在巡检中！");
                        return false;
                    }
                    else {
                        alert("请选择仓房！");
                        return false;
                    }
                }
                else {
                    //发送命令
                    var CompanyID = $("#hdCompany").val();
                    var GranaryID = $("#hdGranaryDC").val();
                    var LoginCode = $("#hdLoginCode").val();
                    var SerialNos = "";

                    $.ajax({
                        type: "Get",
                        url: "AutoCheckTempAjax.ashx",
                        cache: false,
                        ifModified: true,
                        data: "Function=SendAutoCheckOrder&CompanyID=" + CompanyID + "&GranaryID=" + GranaryID + "&LoginCode=" + LoginCode + "&SerialNos=" + "&StoreCheckList=" + StoreCheckList + "/",
                        beforeSend: function (XMLHttpRequest) {

                        },
                        success: function (retMsg) {
                            if (retMsg == "0") {
                                GetCheckDateInfo();

                                SetTime();
                                return false;
                            }
                            else {
                                alert("添加错误!");
                                return false;
                            }
                        }
                    })
                }
            });

            /*********************************************************************************************************************************************************************************************/

            //停止巡检功能
            $("#btn_Stop").click(function () {
                var isCheck = false;
                var isStop = false;
                var SerialNoList = "";

                if (!confirm('确定要停止巡检仓房吗？')) {
                    return false;
                }


                SerialNoList = $(".checkItem").map(function (i, item) {

                    if ($(this).attr("checked")) {

                        var CommandType = $(this).parents("tr").eq(0).find("td:eq(7)").text();
                        var StatusNmStr = $(this).parent("td").siblings().find(".StatusNm").text();

                        if (CommandType == "检测") {
                            isCheck = true;
                        }
                        else {
                            if (StatusNmStr.indexOf("停止") >= 0) {
                                isStop = true;
                            }
                            else {
                                return $(this).parent().prev("td").find("lable").attr("id");
                            }
                        }
                    }
                }).get().join("/");

                if (SerialNoList == "") {
                    if (isCheck) {
                        alert("检测仓房不能停止！");
                        return false;
                    }
                    else if (isStop) {
                        alert("已停止！");
                        return false;
                    }
                    else {
                        alert("请选择仓房！");
                        return false;
                    }
                }
                else {
                    //发送停止命令
                    $.ajax({
                        type: "Get",
                        url: "AutoCheckTempAjax.ashx",
                        ifModified: true,
                        data: "Function=SendStopOrder&SerialNoList=" + SerialNoList + "/",
                        beforeSend: function (XMLHttpRequest) {

                        },
                        success: function (retMsg) {
                            if (retMsg == "0") {
                                GetCheckDateInfo();
                                return false;
                            }
                            else {
                                var mseeage = "";
                                switch (retMsg) {
                                    case "-1":
                                        message = "取消失败";
                                        break;
                                    case "1":
                                        message = "本次取消失败,计划已经发送";
                                        break;
                                    case "2":
                                        message = "本次取消失败,由于重复设置仓房计划已经取消";
                                        break;
                                    case "3":
                                        message = "本次取消失败,计划已经取消";
                                        break;
                                }

                                alert(message);
                                return false;
                            }
                        }
                    });
                }
            });
            /*********************************************************************************************************************************************************************************************/
        });

        //设置循环查询
        function SetTime() {
            if (QueryTimeID > 0) {
                window.clearInterval(QueryTimeID);
            }
            QueryTimeID = setInterval(function () {
                GetCheckDateInfo();
                z++;
                if (z > 8) {
                    window.clearInterval(QueryTimeID);
                }

            }, 30000);    //设定30秒
        }

        /*************************************************************************************************************************************************************************************************/
        // 该函数用于执行倒计时
        function onTimer(id, time) {
            // 将传进来的long型转换成秒
            var remainingTime = time / 1000;
            var hour = 0;
            var minute = 0;
            var second = 0;

            // 需要将其句柄赋予一个变量，方便清除该事件
            var stopCountDown = setInterval(countDown, 1000);
            hashTable.add(id, stopCountDown);
            function countDown() {
                if (remainingTime > 0) {
                    // 如果倒计时大于0，则继续倒计时
                    hour = Math.floor(remainingTime / 3600);
                    minute = Math.floor(Math.floor(remainingTime % 3600) / 60);
                    second = Math.floor(remainingTime % 60);
                    var formatTime = numToDate(hour, minute, second);
                    changeShowTime(id, formatTime);
                    remainingTime--;
                    /* 这里可用Ajax提交到服务器的 */

                } else {
                    // 若倒计时为0，则清除事件
                    clearInterval(stopCountDown);
                    changeShowTime(id, "0分钟");
                    hashTable.remove(id);
                    //更新数据
                    var timeOutID = setTimeout('GetCheckDateInfo', 2000);
                }
            }
        }

        // 将数字转换成时间格式，如： 09:30:45
        function numToDate(hour, minute, second) {
            var tohour = 0;
            if (hour != 0) {
                tohour = hour < 10 ? ("0" + hour) : hour;
            }
            var tominute = minute < 10 ? ("0" + minute) : minute;
            var tosecond = second < 10 ? ("0" + second) : second;
            if (tohour == 0) {
                return "<span style=\"color:green;font-size:14px;\">" + tominute + "分钟 " + "</span>" + "<span style=\"font-size:16px;color:red;font-weight:bold\">" + tosecond + "</sapn>" + "<span style=\"color:green;font-size:14px;font-weight:normal\"> 秒</span>";
            }
        }

        // 该函数用于显示倒计时
        function changeShowTime(id, time) {
            /* 该函数内编写显示倒计时的语句 */
            $("#" + id).html(time);
        }


        /*************************************************************************************************************************************************************************************************/
        //获取数据
        function GetCheckDateInfo() {

            var CompanyID = $("#hdCompany").val();
            var GranaryID = $("#hdGranaryDC").val();
            var PageSize = $("#hdPageSize").val();
            $.ajax({
                type: "Get",
                url: "../../Data/AutoCheckTempAjax.ashx",
                cache: false,
                ifModified: true,
                data: "Function=GetAutoCheckData&CompanyID=" + CompanyID + "&GranaryID=" + GranaryID + "&PageSize=" + PageSize + "",
                beforeSend: function (XMLHttpRequest) {

                },
                success: function (CheckData) {
                    //alert(CheckData);
                    //清空内容
                    $("#dvContent").empty();
                    $("#dvPageSize").empty();


                    var CheckJsonData = $.parseJSON(CheckData);

                    //获取服务器时间
                    var ServerDateTime = CheckJsonData.ServerDateTime;

                    //获取总页数
                    var pageCount = parseInt(CheckJsonData.PageCount);

                    if (pageCount > 0) {
                        //设置显示窗体高度
                        var pageSize = 10;

                        if ($("#hdPageSize").val() != "") {
                            pageSize = parseInt($("#hdPageSize").val()) + 1;
                        }
                        $("#dvContent").height(pageSize * 26);

                        for (var i = 0; i < pageCount; i++) {
                            //新增div
                            $("#dvContent").append("<div id=\"div" + i + "\" class=\"dvContentInfo\"></div>");

                            if (pageCount > 1) {
                                //新增分页
                                $("#dvPageSize").append("<input type=\"button\" id=\"" + i + "\" class=\"pager\" value=\"第" + (i + 1) + "页\" style=\"cursor:hand\"></input>");
                            }
                        }

                        //分页事件
                        $(".pager").click(function () {

                            $(this).css("color", "red");
                            $(".pager").not($(this)).css("color", "black");

                            var no = $(this).attr("id");
                            var div = $("#div" + no);

                            if (div.length > 0) {

                                $(".dvContentInfo").not(div).css("display", "none")
                                //div.show("slow");
                                div.css("display", "inline");
                            }
                        });

                        //往新增div中填充内容
                        $.each(CheckJsonData.CheckDateList, function (i, itemPage) {
                            var table = "";
                            if (pageCount >= 1) {

                                var height
                                table += "<table style='border-width:0px;text-align:center' width='100%' height='auto'>";
                                table += "<tr><th style=\"display:none\">序列号</th><th width=\"5%\"><input type=\"checkbox\" class=\"checkAll\"></th><th>仓房名称</th><th>储备类型</th><th>最近测温时间</th><th>最近测温计划</th><th>测温主机响应时间</th><th>检测类型</th><th width='8%'>操作</th></tr>";

                                $.each(itemPage.CheckDataInfo, function (j, itemCheck) {

                                    //设置储备类型
                                    var ChuBeiLiangTypeName = "";

                                    if (itemCheck.ChuBeiLiangType == "") {
                                        itemCheck.ChuBeiLiangType = "ZC";
                                    }
                                    switch (itemCheck.ChuBeiLiangType.toUpperCase()) {
                                        case "ZC":
                                            ChuBeiLiangTypeName = "中央储备";
                                            break;
                                        case "SC":
                                            ChuBeiLiangTypeName = "商品储备";
                                            break;
                                        case "HC":
                                            ChuBeiLiangTypeName = "混合储备";
                                            break;
                                        case "LC":
                                            ChuBeiLiangTypeName = "临时储备";
                                            break;
                                        case "TC":
                                            ChuBeiLiangTypeName = "特种储备";
                                            break;
                                        case "ZD":
                                            ChuBeiLiangTypeName = "托市粮";
                                            break;
                                    }
                                    //设置颜色
                                    var color1 = "";
                                    if (itemCheck.IsWarning == "0") {
                                        color1 = "black";
                                    }
                                    else {
                                        color1 = "red";
                                    }
                                    //计划新增时间
                                    var addTime = "";
                                    addTime = itemCheck.AddTime;

                                    //设置状态和颜色
                                    var statusNm = "";
                                    var color2 = "";
                                    switch (itemCheck.State) {
                                        case "0": // 
                                            color2 = "Green";
                                            statusNm = "&nbsp;[等待中]";
                                            break;
                                        case "1": // 
                                            color2 = "Black";
                                            statusNm = "&nbsp;[暂无连接]";
                                            break;
                                        case "2":
                                            color2 = "Black";
                                            statusNm = "&nbsp;[检测中]";
                                            break;
                                        case "3":
                                            color2 = "Black";
                                            statusNm = "&nbsp;[巡检中]";
                                            break;
                                        case "4":
                                            color2 = "Black";
                                            statusNm = "&nbsp;[巡检正在停止]";
                                            break;
                                        case "5":
                                            color2 = "Black";
                                            statusNm = "&nbsp;[巡检完成]";
                                            break;
                                        case "6":
                                            color2 = "Black";
                                            statusNm = "&nbsp;[检测完成]";
                                            break;
                                        case "7":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[客户端无该仓房信息]";
                                            break;
                                        case "8":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[客户端无该仓房配置信息]";
                                            break;
                                        case "9":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[检测时返回的错误信息]";
                                            break;

                                        case "10":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[无该硬件厂家的检测配置信息]";
                                            break;
                                        case "11":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[操作超时]";
                                            break;
                                        case "12":
                                            color2 = "Red";
                                            statusNm = "&nbsp;[客户端关闭]";
                                            break;
                                    }

                                    //addTime = addTime + statusNm;
                                    var WaitTime = $("#hdWaitTime").val() + "分钟";
                                    if (statusNm.indexOf("等待中") >= 0) {

                                        WaitTime = "";
                                    }


                                    table += "<tr><td style=\"display:none\">" + "<lable id=\"" + itemCheck.SerialNo + "\"></lable>" + "</td><td>" + "<input type=\"checkbox\" class=\"checkItem\" id=\"" + itemCheck.HouseId + "\">" + "</td><td>" + itemCheck.Housename + "</td><td>" + ChuBeiLiangTypeName + "</td>" +
                                                 "<td>" + "<span style=\"color:" + color1 + "\" id=\"" + itemCheck.CheckTime + "\" class=\"lastCheckTime\">" + itemCheck.CheckTime + "</span>" + "</td><td>" + "<span class=\"AddTime\" style=\"color:" + color2 + "\">" + addTime + "</span>" + "<span class=\"StatusNm\" style=\"color:" + color2 + "\">" + statusNm + "</span>" + "</td>" +
                                                 "<td>" + "<span id=\"Time_" + itemCheck.HouseId + "\" lang=\"0\"" + "\" class=\"WaitTime\">" + WaitTime + "</span>" + "</td><td>" + itemCheck.CommandType + "</td><td>" + "<input type=\"button\" id=\"btnView\"" + j + " class=\"anni1 TempView\" style=\"cursor:hand\"  value=\"查  看\" />" + "</td></tr>";
                                })

                                table += "</table>";

                                $("#div" + i).append(table);

                                if (i == 0) {
                                    $("#div" + i).css("display", "inline");
                                    $("#" + i).css("color", "red");
                                }
                            }
                        })
                    }
                    else {
                        $("#dvContent").height("0");
                        return;
                    }
                    //全选
                    $(".checkAll").click(function () {
                        if ($(this).attr("checked")) {
                            $(".checkAll").attr("checked", true);
                            $(".checkItem").attr("checked", true);
                        }
                        else {
                            $(".checkAll").attr("checked", false);
                            $(".checkItem").attr("checked", false);
                        }
                    });

                    //查看测温详情
                    $(".TempView").click(function () {
                        var GranaryID = $("#hdGranaryDC").val();
                        var HouseId = $(this).parents("tr").eq(0).find(".checkItem").attr("id");
                        var lastCheckTime = $(this).parents("tr").eq(0).find(".lastCheckTime").attr("id");

                        ShowInfo2(GranaryID, HouseId, lastCheckTime);   //查看测温详情
                    })

                    //秒倒计时
                    $(".checkItem").map(function (i, item) {

                        var AddTimeStr = $(this).parent("td").siblings().find(".AddTime").text();
                        var StatusNmStr = $(this).parent("td").siblings().find(".StatusNm").text();
                        if (StatusNmStr.indexOf("等待中") >= 0) {

                            var waitTime = $("#hdWaitTime").val();

                            var diffSeconds = dateDiff('T', AddTimeStr, ServerDateTime, parseInt(waitTime));

                            var id = $(this).parent().siblings().find(".WaitTime").attr("id");
                            var flag = $(this).parent().siblings().find(".WaitTime").attr("lang");   //判断当前行是否正在到计时ing


                            var flagHash = hashTable.contains(id);        //判断id是否已存在HashTable中

                            if (!flagHash) {

                                onTimer(id, diffSeconds);                 //倒计时事件
                            }
                        }
                        else {
                            var id = $(this).parent().siblings().find(".WaitTime").attr("id");
                            var flagHash = hashTable.contains(id);        //判断id是否已存在HashTable中

                            if (flagHash) {
                                var stopCountDownValue = hashTable.items(id);

                                clearInterval(stopCountDownValue);

                                hashTable.remove(id);                     //从hashTable中移除
                            }
                        }
                    })
                }
            })
        }


        //操作提示
        function Check() {
            if ($("#hdCompany").val() == "") {
                alert("请选择分公司！");
                $(".Company_AutoComplete").next("input").focus();
                return false;
            }
            else if ($("#hdGranaryDC").val() == "") {
                alert("请选择粮库！");
                $(".Granary_AutoComplete_DC").next("input").focus();
                return false;
            }
            else {
                return true;
            }
        }
        //查看测温明细
        function ShowInfo2(str, str1, str2) {
            //var url = "TempDetail.aspx?gid=" + str + "&housid=" + str1 + "&datetime=" + str2 + "&companyid=" + document.getElementById("ddlOrg").value;
            var url = "TempDetail.aspx?gid=" + str + "&housid=" + str1 + "&datetime=" + str2 + "&companyid=" + $("#hdCompany").val();
            //show("粮仓测控数据详情", url, 450, 650, 1);
            show("粮仓测控数据详情", url, 600, 900, 1);
        }
        //获取时间差
        function dateDiff(interval, date1, date2, minSpan) {
            var objInterval = { 'D': 1000 * 60 * 60 * 24, 'H': 1000 * 60 * 60, 'M': 1000 * 60, 'S': 1000, 'T': 1 };
            interval = interval.toUpperCase();
            var dt1 = new Date(Date.parse(date1.replace(/-/g, '/')));
            var dt2 = new Date(Date.parse(date2.replace(/-/g, '/')));
            try {
                //                alert(dt2.getTime() - dt1.getTime());
                //                //alert(eval_r('objInterval.'+interval));
                //                //alert((dt2.getTime() - dt1.getTime()) / eval_r('objInterval.'+interval));
                //                return Math.round((dt2.getTime() - dt1.getTime()) / eval_r('objInterval.' + interval));
                var secondDiff = parseInt(dt2.getTime() - dt1.getTime());
                var secondLast = (minSpan * 60 * 1000) - secondDiff;
                if (secondLast < 0) {
                    secondLast = 0;
                }
                return secondLast;
            }
            catch (e) {
                return e.message;
            }
        }
        //获取时间
        function CurentTime() {
            var now = new Date();

            var year = now.getFullYear();       //年
            var month = now.getMonth() + 1;     //月
            var day = now.getDate();            //日

            var hh = now.getHours();            //时
            var mm = now.getMinutes();          //分
            var ss = now.getSeconds();          //秒
            var clock = year + "-";

            if (month < 10)
                clock += "0";

            clock += month + "-";

            if (day < 10)
                clock += "0";

            clock += day + " ";

            if (hh < 10)
                clock += "0";

            clock += hh + ":";

            if (mm < 10)
                clock += "0";

            clock += mm + ":";

            if (ss < 10)
                clock += "0";

            clock += ss;

            return (clock);
        }
        //HashTable 类
        function Hashtable() {
            this._hash = new Object();
            this.add = function (key, value) {
                if (typeof (key) != "undefined") {
                    if (this.contains(key) == false) {
                        this._hash[key] = typeof (value) == "undefined" ? null : value;
                        return true;
                    } else {
                        return false;
                    }
                } else {
                    return false;
                }
            }
            this.remove = function (key) { delete this._hash[key]; }
            this.count = function () { var i = 0; for (var k in this._hash) { i++; } return i; }
            this.items = function (key) { return this._hash[key]; }
            this.contains = function (key) { return typeof (this._hash[key]) != "undefined"; }
            this.clear = function () { for (var k in this._hash) { delete this._hash[k]; } }

        }
        //新建tab方法
        function openPanelWithMenu(node_id, node_text, node_url) {
            var v = node_url.indexOf("top=1", 0);
            if (v >= 0) {
                var newpage = window.open(node_url);
                newpage.blur();
                return;
            }
            var n = window.top.center.getComponent(node_id);

            if (n) { //判断是否已经打开该面板
                window.top.center.remove(n);
            }
            n = window.top.center.add({
                xtype: "panel",
                id: node_id,
                iconCls: 'totalicon',
                title: node_text,
                closable: true,  //通过html载入目标页
                html: '<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="' + node_url + '"></iframe>'
            });
            window.top.center.setActiveTab(n);
        }
    </script>
    <style type="text/css">
        .ui-button
        {
            margin-left: 0px;
        }
        .ui-button-icon-only .ui-button-text
        {
            padding: 0.15em;
        }
        .ui-autocomplete-input
        {
            margin: 0;
            padding: 0.18em 0 0.18em 0.18em;
            font-size: 12px;
        }
        .Company
        {
            width: 260px;
        }
        .City
        {
            width: 80px;
        }
        .Granary
        {
            width: 260px;
        }
        .GranaryDC
        {
            width: 260px;
        }
        li
        {
            height: 18px;
        }
        .dvUseTip
        {
            height:300px;    
            vertical-align :middle;
        }
        .dvContent
        {
            width:100%;    
        }
        .dvContentInfo
        {
            height: 100%;
            width: 100%;
            display: none;
        }
     </style>

</head>
<body>
    <form name="form1" method="post" action="AutoCheckTempAjaxSub.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEyMjM0ODA4NDlkZG86iEwbw/tPd1czBxhDSNFMhBk20g3u6qpXqvTeYBiU" />
</div>

<div>

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWFgKRkPORDgKjzu7EAQK+5ZrtBQLd0orUCAK/z9zDCQL5lJb5BQLpgIOeCwKgw6OYBwLL6fDBAwKd0OfxBALu6LLHAgLzhaL/DgKk2/vQAwLF/c//CwLbxK63CAKe3Y3gBQLm2aexAQLzjumbDwKYyPuGCALHr6PFBgLluvS0AQLyrtqIBp13smIE/oDQx6Wp1SNMtvy2iVdZb1+ZuwJ8GKe2pFY+" />
</div>
    <div>
        
        <table width="100%">
                    <tr>
                <td colspan="4" class="tdthread">
                    远程测温
                </td>
            </tr>
            <tr class="noboder">
                <td class="tbtitle">
                    分公司：
                </td>
                <td class="tbright">
                    &nbsp;<select name="ddl_Company_AutoComplete" id="ddl_Company_AutoComplete" mark="Company" class="Company_AutoComplete" style="display: none;">
<option value="">Select one...</option><option value="SA0000000000035" title="zhongguochubeiliangguanlizonggongsihenanfengongsi">中国储备粮管理总公司河南分公司</option></select><input class="Company ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                </td>
                <!-- <td class="tbright">
                    &nbsp;<select name="ddl_Company_AutoComplete" id="ddl_Company_AutoComplete" mark="Company" class="Company_AutoComplete">
</select>
                </td> -->
                <td class="tbtitle">
                    直属库：
                </td>
                <td class="tbright">
                    &nbsp;<select name="ddl_Granary_AutoComplete" id="ddl_Granary_AutoComplete" class="Granary_AutoComplete" mark="Granary" style="display:none">
<option value="">Select one...</option><option value="SA0000000000401" title="zhongyangchubeiliangzuochuanzhishuku">中央储备粮潢川直属库</option></select><input class="Granary ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                    <input name="status" type="hidden" id="status" value="load">
                </td>
                <!-- <td class="tbright">
                    &nbsp;<select name="ddl_Granary_AutoComplete" id="ddl_Granary_AutoComplete" class="Granary_AutoComplete" mark="Granary" style="display:none">
</select>
                    <input name="status" type="hidden" id="status" value="load" />
                </td> -->
            </tr>
            <tr class="noboder">
                            <td class="tbtitle">
                                粮库：
                            </td>
                            <td class="tbright">
                                &nbsp;<select name="ddl_Granary_AutoComplete_DC" id="ddl_Granary_AutoComplete_DC" class="Granary_AutoComplete_DC" mark="GranaryDC" style="display: none">
<option value="">Select one...</option><option value="DC0000000356957" title="guangshanxiantongfuliangshimaoyiyouxianzerengongsikudian">光山县同富粮食贸易有限责任公司库点</option></select><input class="GranaryDC ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                            </td>
                            <!-- <td class="tbright">
                                &nbsp;<select name="ddl_Granary_AutoComplete_DC" id="ddl_Granary_AutoComplete_DC" class="Granary_AutoComplete_DC" mark="GranaryDC" style="display: none">
</select>
                            </td> -->
                            <td class="tbtitle">
                                
                            </td>
                            <td class="tbright">
                                
                            </td>
                        </tr>
        </table>
        <input type="hidden" name="HiddenFieldId" id="HiddenFieldId" />
        <input type="button" id="btn_Query" class="anni1" value="查 询" />
        <input type="button" id="btn_Check" class="anni1" value="检 测" />
        <input type="button" id="btn_CheckAuto" class="anni1" value="巡 检" />
        <input type="button" id="btn_Stop" class="anni1" value="停 止" />
        <!-- <input name="btn_temp" type="button" id="btn_temp" class="RedirectOtherPage anni1" lang="./Pages/StoreWarning/TempOrHumWaringSubNav.aspx" ValidationGroup="003027" value="温湿度预警" />
        <input name="btn_Empty" type="button" id="btn_Empty" class="RedirectOtherPage anni1" lang="./Pages/StoreWarning/EmptyStoreWarningSubNav.aspx" ValidationGroup="003026" value="空仓预警" /> -->
    </div>
    <div id="dvContent" class="dvContent" style="height: 286px;"><div id="div0" class="dvContentInfo" style="display: inline;"><table style="border-width:0px;text-align:center" width="100%" height="auto"><tbody><tr><th style="display:none">序列号</th><th width="5%"><input type="checkbox" class="checkAll"></th><th>仓房名称</th><th>储备类型</th><th>最近测温时间</th><th>最近测温计划</th><th>测温主机响应时间</th><th>检测类型</th><th width="8%">操作</th></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100100"></td><td>1号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:17:24" class="lastCheckTime">2017-06-01 10:17:24</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100100" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 0="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100200"></td><td>2号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:17:38" class="lastCheckTime">2017-06-01 10:17:38</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100200" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 1="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100300"></td><td>3号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:16:46" class="lastCheckTime">2017-06-01 10:16:46</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100300" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 2="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100400"></td><td>4号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 09:09:27" class="lastCheckTime">2017-06-01 09:09:27</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100400" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 3="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100500"></td><td>5号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 09:09:41" class="lastCheckTime">2017-06-01 09:09:41</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100500" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 4="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100600"></td><td>6号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 09:09:55" class="lastCheckTime">2017-06-01 09:09:55</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100600" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 5="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100700"></td><td>7号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 09:12:15" class="lastCheckTime">2017-06-01 09:12:15</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100700" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 6="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100800"></td><td>8号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:16:58" class="lastCheckTime">2017-06-01 10:16:58</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100800" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 7="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957100900"></td><td>9号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:18:53" class="lastCheckTime">2017-06-01 10:18:53</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957100900" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 8="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101000"></td><td>10号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:19:07" class="lastCheckTime">2017-06-01 10:19:07</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101000" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 9="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr></tbody></table></div><div id="div1" class="dvContentInfo"><table style="border-width:0px;text-align:center" width="100%" height="auto"><tbody><tr><th style="display:none">序列号</th><th width="5%"><input type="checkbox" class="checkAll"></th><th>仓房名称</th><th>储备类型</th><th>最近测温时间</th><th>最近测温计划</th><th>测温主机响应时间</th><th>检测类型</th><th width="8%">操作</th></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101100"></td><td>11号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:19:21" class="lastCheckTime">2017-06-01 10:19:21</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101100" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 0="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101200"></td><td>12号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:19:35" class="lastCheckTime">2017-06-01 10:19:35</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101200" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 1="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101300"></td><td>13号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:19:49" class="lastCheckTime">2017-06-01 10:19:49</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101300" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 2="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101400"></td><td>14号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:20:03" class="lastCheckTime">2017-06-01 10:20:03</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101400" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 3="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101500"></td><td>15号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:20:17" class="lastCheckTime">2017-06-01 10:20:17</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101500" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 4="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr><tr><td style="display:none"><lable id=""></lable></td><td><input type="checkbox" class="checkItem" id="356957101600"></td><td>16号仓</td><td>托市粮</td><td><span style="color:black" id="2017-06-01 10:20:32" class="lastCheckTime">2017-06-01 10:20:32</span></td><td><span class="AddTime" style="color:"></span><span class="StatusNm" style="color:"></span></td><td><span id="Time_356957101600" lang="0" "="" class="WaitTime">4分钟</span></td><td></td><td><input type="button" id="btnView" 5="" class="anni1 TempView" style="cursor:hand" value="查  看"></td></tr></tbody></table></div></div>
    <!-- <div id="dvContent" class="dvContent">
    </div> -->
    <input type="hidden" name="hdPageSize" id="hdPageSize" value="10" />
    <div id="dvPageSize" style="margin-top: 10px; height:25px; text-align: right; padding-right: 5px;"><input type="button" id="0" class="pager" value="第1页" style="color: red;"><input type="button" id="1" class="pager" value="第2页" style="cursor:hand"></div>
    <!-- <div id="dvPageSize" style="margin-top: 10px; height:25px; text-align: right; padding-right: 5px;">      
        
    </div> -->
    <div id="dvTipInfo" style="width:100%;margin-top:5px;text-align:left;">
        <fieldset style="border-color:Gray;border-width:1px;border-style:solid;width:760px;">
            <legend>使用方法</legend>
            <div class="dvUseTip">
                <img  src="imgs/Process.jpg" />
            </div>
        </fieldset>
    </div>
    <!--AutoComplete 配置项***************************************************************************-->
    <input type="hidden" name="hdLoginCode" id="hdLoginCode" value="35695701" />
    <input type="hidden" name="hdWaitTime" id="hdWaitTime" value="4" />
    <input type="hidden" name="hdCompany" id="hdCompany" />
    <input type="hidden" name="hdCompanyName" id="hdCompanyName" />
    <!-- <input type="hidden" name="hdCompanyName" id="hdCompanyName" value="中国储备粮管理总公司河南分公司"> -->
    <input type="hidden" name="hdCity" id="hdCity" />
    <input type="hidden" name="hdGranary" id="hdGranary" />
    <input type="hidden" name="hdGranaryName" id="hdGranaryName" />
    <input type="hidden" name="hdGranaryDC" id="hdGranaryDC" />
    <input type="hidden" name="hdGranaryNameDC" id="hdGranaryNameDC" />
    <input type="hidden" name="hdWindowWidth" id="hdWindowWidth" />
    <input type="hidden" name="hdStoreStatus" id="hdStoreStatus" />
    <input type="hidden" name="hdDataSouse" id="hdDataSouse" />
    <input type="hidden" name="hdShowAll" id="hdShowAll" value="n" />
    <!--***********************************************************************************************-->
    </form>
</body>
</html>
